//
//  LookViewCollectionCell.m
//  Kugou-OC
//
//  Created by BH on 16/5/9.
//  Copyright © 2016年 Sunny. All rights reserved.
//

#import "LookViewCollectionCell.h"
#import "GlobalDefine.h"

@implementation LookViewCollectionCell

-(id)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        _itemImg = [[UIImageView alloc] init];
        _itemLab = [[UILabel alloc] init];
        
        for (id subView in self.contentView.subviews) {
            [subView removeFromSuperview];
        }
        
        [self.contentView addSubview:_itemImg];
        [self.contentView addSubview:_itemLab];
    }
    return self;
}

-(void)layoutSubviews{
    [super layoutSubviews];
    
    _itemImg.frame = CGRectMake(0, 0, (SCREEN_WIDTH-80)/3, 60);
    _itemLab.textAlignment = NSTextAlignmentCenter;
    _itemLab.font = TITLE_THIRD_FONT;
    _itemLab.frame = CGRectMake(0, 60, (SCREEN_WIDTH-80)/3, 30);
    
}

@end
